//
//  FHNewFmModels.m
//  ZhiXinFM
//
//  Created by lanou3g on 15/7/20.
//  Copyright (c) 2015年 YITeam. All rights reserved.
//

#import "FHNewFmModels.h"

@implementation FHNewFmModels

- (instancetype)initWithDic:(NSDictionary *)dic{
    if (self=[super init]) {
        //[dic setValuesForKeysWithDictionary:dic];
        self.cover=dic[@"cover"];
        self.speak=dic[@"speak"];
        self.title=dic[@"title"];
        self.ID=dic[@"id"];
        self.url=dic[@"url"];
    }
    return self;
}
//- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
//    if ([key isEqualToString:@"id"]) {
//        _ID=value;
//    }else{
//        [super setValue:value forKey:key];
//    }
//}

+ (instancetype)newFmWithDic:(NSDictionary *)dic{
    return [[self alloc]initWithDic:dic];
}
@end
